<template>
    <fieldset>
        <legend>混入组件</legend>
        <h1>一些内容</h1>
        <button @click="handleClick">点击</button>
        <button @click="handleClick2">点击2</button>
        <h1>{{ msg }}</h1>
        <h1>{{ msg2 }}</h1>
    </fieldset>
</template>

<script>
import mixCom from '../../mixins/mixCom'
export default{
    mixins:[mixCom],
    data(){
        return{
            msg:"只因你太美"
        }
    },
    methods:{
        handleClick(){
            console.log('组件的点击事件');
            
        }
    },
    mounted(){
        console.log('组件的this',this);
        
        console.log('组件的mounted钩子函数');
        
    }
}
</script>